import request from '../request.js'

const Api_user = {
	//专辑列表
	userAlbum: function(data) {
		return request({
			url: '/user/album',
			method: 'GET',
			data:data
		})
	},
	//我的藏品的专辑
	userAlbums: function(data) {
		return request({
			url: '/user/albums',
			method: 'GET',
			data:data
		})
	},
	//创建专辑
	albumStore: function(data) {
		return request({
			url: '/user/album/store',
			method: 'POST',
			data:data
		})
	},
	//修改专辑
	albumUpdate: function(data) {
		return request({
			url: '/user/album/update',
			method: 'POST',
			data:data
		})
	},
	//修改用户
	userUpdate: function(data) {
		return request({
			url: '/user/update',
			method: 'POST',
			data:data
		})
	},
	//藏品详情下的列表
	userWorkList: function(data) {
		return request({
			url: '/user/work',
			method: 'GET',
			data:data
		})
	},
	//我的藏品列表
	userWorksList: function(data) {
		return request({
			url: '/user/works',
			method: 'GET',
			data:data
		})
	},
	//藏品详情
	userWorkShow: function(data) {
		return request({
			url: '/user/work/show',
			method: 'GET',
			data:data
		})
	},
	//寄售
	userWorkSell: function(data) {
		return request({
			url: '/user/work/sell',
			method: 'POST',
			data:data
		})
	},
	//批量寄售
	userWorkSellBatch: function(data) {
		return request({
			url: '/user/work/sell/batch',
			method: 'POST',
			data:data
		})
	},
	//取消寄售
	userWorkSellCancel: function(data) {
		return request({
			url: '/user/work/sell/cancel',
			method: 'POST',
			data:data,
			showLoading:true
		})
	},
	//查找用户基本信息
	searchUser: function(data) {
		return request({
			url: '/user/info',
			method: 'GET',
			data:data
		})
	},
	//藏品盲盒列表
	userBoxList: function(data) {
		return request({
			url: '/user/box',
			method: 'GET',
			data:data
		})
	},
	//藏品盲盒详情
	userBoxShow: function(data) {
		return request({
			url: '/user/box/show',
			method: 'GET',
			data:data
		})
	},
	//开启盲盒
	userBoxOpen: function(data) {
		return request({
			url: '/user/box/open',
			method: 'POST',
			data:data
		})
	},
	//盲盒挂售列表
	userBoxSellList: function(data) {
		return request({
			url: '/user/box/sells',
			method: 'GET',
			data:data
		})
	},
	//盲盒挂售
	userBoxSell: function(data) {
		return request({
			url: '/user/box/sell',
			method: 'POST',
			data:data
		})
	},
	//取消盲盒挂售
	userBoxCancel: function(data) {
		return request({
			url: '/user/box/sell/cancel',
			method: 'POST',
			data:data
		})
	},
	//设置修改优先购
	setPreorder: function(data){
		return request({
			url: '/user/work/preorder',
			method: 'GET',
			data:data
		})
	},
	//领取空投
	airdrop: function(data){
		return request({
			url: '/user/airdrop',
			method: 'POST',
			data:data
		})
	},
	//邀请数量
	inviteCount: function(data){
		return request({
			url: '/user/invite',
			method: 'GET',
			data:data
		})
	},
	//邀请列表
	inviteList: function(data){
		return request({
			url: '/user/invite/users',
			method: 'GET',
			data:data
		})
	},
}
export default Api_user
